package cn.com.dycc.sys_manage.dictionarysysmanagement.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Dictionary implements Serializable{

	private static final long serialVersionUID = 3362484126263300903L;
	
	private String id;              //序号
	private String column_name;		//字段名
	private String key;             //名称     
	private String val;				//值
	private String tab_name; 		//表名
	private String remake;			//备注
	private Integer order_no;		//排序
	private String org_id;			//组织标识
	private Timestamp create_date;  //创建时间
	private String opt_user_id;		//创建人
	private String state; 			//可用标识   Y 可用  N 不可用
	private String update_date;
	private String update_user_id;
	
	public Dictionary(){}
	
	public Dictionary(String id, String column_name, String key, String val, String tab_name, String remake,
			Integer order_no, String org_id, Timestamp create_date, String opt_user_id, String state,
			String update_date, String update_user_id) {
		super();
		this.id = id;
		this.column_name = column_name;
		this.key = key;
		this.val = val;
		this.tab_name = tab_name;
		this.remake = remake;
		this.order_no = order_no;
		this.org_id = org_id;
		this.create_date = create_date;
		this.opt_user_id = opt_user_id;
		this.state = state;
		this.update_date = update_date;
		this.update_user_id = update_user_id;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getColumn_name() {
		return column_name;
	}

	public void setColumn_name(String column_name) {
		this.column_name = column_name;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getVal() {
		return val;
	}

	public void setVal(String val) {
		this.val = val;
	}

	public String getTab_name() {
		return tab_name;
	}

	public void setTab_name(String tab_name) {
		this.tab_name = tab_name;
	}

	public String getRemake() {
		return remake;
	}

	public void setRemake(String remake) {
		this.remake = remake;
	}

	public Integer getOrder_no() {
		return order_no;
	}

	public void setOrder_no(Integer order_no) {
		this.order_no = order_no;
	}

	public String getOrg_id() {
		return org_id;
	}

	public void setOrg_id(String org_id) {
		this.org_id = org_id;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Timestamp getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Timestamp create_date) {
		this.create_date = create_date;
	}

	public String getOpt_user_id() {
		return opt_user_id;
	}

	public void setOpt_user_id(String opt_user_id) {
		this.opt_user_id = opt_user_id;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getUpdate_date() {
		return update_date;
	}

	public void setUpdate_date(String update_date) {
		this.update_date = update_date;
	}

	public String getUpdate_user_id() {
		return update_user_id;
	}

	public void setUpdate_user_id(String update_user_id) {
		this.update_user_id = update_user_id;
	}

	@Override
	public String toString() {
		return "Dictionary [id=" + id + ", column_name=" + column_name + ", key=" + key + ", val=" + val + ", tab_name="
				+ tab_name + ", remake=" + remake + ", order_no=" + order_no + ", org_id=" + org_id + ", create_date="
				+ create_date + ", opt_user_id=" + opt_user_id + ", state=" + state + ", update_date=" + update_date
				+ ", update_user_id=" + update_user_id + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Dictionary other = (Dictionary) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	
}
